/**
 * Created by web-01 on 2017/10/16.
 */
$(()=>{
    $("[name=usubmit]").click(function(e){
        e.preventDefault();
        var u=$("[name=uname]").val();
        var p=$("[name=upwd]").val();
       $.ajax({
           type:"post",
            url:"data/01_login.php",
           data:{uname:u,upwd:p},
           success:function (data) {
               console.log(data);
           },error:function () {
               console.log("网络错误");
           }
       });
    });

});